#include "stdafx.h"
#include "itoken.hpp"
#include "engine.hpp"
#include <iostream>

extern "C" libtoken::libtoken(const char *_filename)
{
	_tk = new engine(_filename);
}

libtoken::~libtoken()
{
	delete _tk;
}

extern "C" std::ostream& operator << (std::ostream& ost, itoken& tk)
{
	ost << tk.get_config() << std::endl;

	return ost;
}

extern "C" itoken* libtoken::getToken()
{
	return _tk;
}
